<div class="block-bar">
    <div class="container">
        <div class=" block-body row">
            <div class="col-xs-12">
                <div class="common-block">
                    <h2>{:modC('SHOP_SHOW_TITLE',L('_HOTTEST_').L('_MODULE_'),'Shop')}</h2>
                    <div class="common-block-body">
                        <div class="issue_list">
                            <div class="clearfix">
                                <volist name="contents_new" id="vo">
                                    <div class="col-xs-3 goods" style="margin-bottom: 20px">
                                        <div class="item_goods position_re" style="  width: 240px;
  border: 1px solid #E0DEDE;
  padding: 8px;">
                                            <if condition="$vo['is_new'] eq 1">
                                                <i class="ico_new" ><img src="__IMG__/goods_new.png"></i>
                                                <else/>
                                                <i class="ico_new" ><img src="__IMG__/goods_hot.png"></i>
                                            </if>


                                            <style>
                                                .position_re:hover{
                                                    box-shadow: 0 0 4px #ccc;
                                                }

                                                .ico_new {
                                                    position: absolute;
                                                    top: 0;
                                                    left: 10px;
                                                    z-index: 800;
                                                    width: 85px;
                                                    height: 61px;
                                                }
                                                .ico_to_money{
                                                    width: 18px;
                                                    height: 12px;
                                                    display: inline-block;
                                                }
                                            </style>
                                            <dl style="margin-bottom: 0px">
                                                <dt>
                                                    <a href="{:U('Shop/Index/goodsDetail',array('id'=>$vo['id']))}">
                                                        <img style="width: 222px;height: 222px" src="{$vo.goods_img|getThumbImageById=222,222}">
                                                    </a>
                                                </dt>
                                                <dd  style="  margin-top: 15px;font-size: 14px;">
                                                    <div  style="float: left">
                                                        <a class="text-more color_33"
                                                           href="{:U('Shop/Index/goodsDetail',array('id'=>$vo['id']))}"
                                                           style="width: 100%;">
                                                            <font title="{$vo.goods_name|op_t}">{$vo.goods_name}</font>
                                                        </a>
                                                    </div>
                                                    <div  style="color: #d61f39;text-align: right"><a><font title="{:L('_NEED_')}{$money_type.title}">
                                                        <i class="ico_to_money"><img src="__IMG__/coins.png"></i>&nbsp;{$vo.money_need} {$money_type.unit}</font></a></div>
                                                    <div class="clearfix"></div>
                                                </dd>
                                                <dd class="color_84 font_s_14">
                                                    <div class="" style="float: left;  margin-top: 15px;font-size: 14px;  color: #848484">{:L('_STOCK_')}{:L('_COLON_')}{$vo.goods_num}</div>
                                                    <php>
                                                        $class='';
                                                        if(is_login()){
                                                        if($my_money>=$vo['money_need']){
                                                        $class='open-popup-link';
                                                        }else{
                                                        $class='money_not_enough ';
                                                        }
                                                        }
                                                    </php>
                                                    <div style="float: right;margin-top: 15px">
                                                        <a href="{:U('Shop/Index/goodsDetail',array('id'=>$vo['id']))}" class="{$class} btn exchange_goods"
                                                           style="border: 1px solid #E0DBDB"
                                                           goods_id="{$vo['id']}">{:L('_EXCHANGE_')}</a>
                                                    </div>
                                                </dd>
                                                <div class="clearfix"></div>
                                            </dl>
                                        </div>
                                    </div>
                                </volist>
                                <if condition="count($contents_new) eq 0">
                                    <div style="font-size:3em;padding:2em 0;color: #ccc;text-align: center">{:L('_TIP_NEW_PRODUCT_NONE_')}</div>
                                </if>
                            </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
        </div>
